package com.ruoyi.project.propertySystem.mapper;

import java.util.List;

import com.ruoyi.project.propertySystem.domain.InspectFormwork;
import org.apache.ibatis.annotations.Param;

/**
 * 巡检分类模板Mapper接口
 *
 * @author wangshuo
 * @date 2021-01-18
 */
public interface InspectFormworkMapper {
    /**
     * 查询巡检分类模板
     *
     * @param id 巡检分类模板ID
     * @return 巡检分类模板
     */
    public InspectFormwork selectInspectFormworkById(Long id);

    /**
     * 查询巡检分类模板列表
     *
     * @param inspectFormwork 巡检分类模板
     * @return 巡检分类模板集合
     */
    public List<InspectFormwork> selectInspectFormworkList(InspectFormwork inspectFormwork);

    /**
     * 新增巡检分类模板
     *
     * @param inspectFormwork 巡检分类模板
     * @return 结果
     */
    public int insertInspectFormwork(InspectFormwork inspectFormwork);

    /**
     * 修改巡检分类模板
     *
     * @param inspectFormwork 巡检分类模板
     * @return 结果
     */
    public int updateInspectFormwork(InspectFormwork inspectFormwork);

    /**
     * 删除巡检分类模板
     *
     * @param id 巡检分类模板ID
     * @return 结果
     */
    public int deleteInspectFormworkById(Long id);

    /**
     * 批量删除巡检分类模板
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteInspectFormworkByIds(Long[] ids);

    int batchInsert(@Param("inspectFormworks") List<InspectFormwork> inspectFormworks);

    int deleteInspectFormworkByFormworkId(Long formworkId);

    List<InspectFormwork> selectInspectFormworkByStationId(Long stationId);
}
